home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / usr / lib / ubiquity / clock-setup / finish-install < prev   
Encoding:
Text File  |  2007-04-12  |  320 b   |  17 lines

  1. #!/bin/sh
  2. set -e
  3.  
  4. . /usr/share/debconf/confmodule
  5.  
  6. rcsfile=/target/etc/default/rcS
  7. tmp=/tmp/rcS
  8.  
  9. db_get clock-setup/utc
  10. if [ "$RET" = true ]; then
  11.     sed -e 's:^UTC="no":UTC="yes":' -e 's:^UTC=no:UTC=yes:' $rcsfile > $tmp
  12.     
  13. else
  14.     sed -e 's:^UTC="yes":UTC="no":' -e 's:^UTC=yes:UTC=no:' $rcsfile > $tmp
  15. fi
  16. mv $tmp $rcsfile
  17.